<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="domain.*,java.util.*"%>
<html>
<head>
<meta http-equiv="content-type" content="text/html;" />
<title>Banco de alimento</title>
<meta name="keywords" content="" />
<meta name="description" content="" />


<link rel="shortcut icon" href="http://localhost:8180/isg3-bancoDeAlimentos/WebContent/images/favicon.ico"> 
<link rel="StyleSheet" href="css/default.css" type="text/css">
</head>
<body>
	
	<jsp:include page="header.html"></jsp:include>
<!-- start page -->
<div id="page">
<%
		
		String username= (String)session.getAttribute("session.user");
		
		IGestorUsuarios user= new GestorUsuario();
		String tipo=user.getRol(username);
		session.setAttribute("session.tipo", tipo);
		
%>
	<!-- start sidebar -->
	<div id="sidebar">
	<jsp:include page="menuRegistro.html"></jsp:include>
<%

if(tipo.equals("5")){
%>	<jsp:include page="menuReceptor.html"></jsp:include>
	<jsp:include page="menuDonador.html"></jsp:include>
	<jsp:include page="menuVoluntario.html"></jsp:include>
<%
}else{
	if(tipo.equals("7")){
%>		<jsp:include page="menuReceptor.html"></jsp:include><%
	}else{
		if(tipo.equals("6")){
%>			<jsp:include page="menuDonador.html"></jsp:include><%
		}else{
%>		<jsp:include page="menuVoluntario.html"></jsp:include><%
		}
	}
}

%>
	
	
	
	
	
	</div>
	<!-- end sidebar -->
	
	
	<!-- start content -->
	<div id="content">
		<div class="post">
			<h1 class="title">Bienvenido a nuestra web </h1>
			<div class="entry">
				
			</div>
			
		</div>
		<div class="post">
			<h2 class="title">Opciones</h2>
			
		</div>
	</div>
	<!-- end content -->
</div>
<!-- end page -->


</body>
</html>


